<div class="editcate_top">
            <h2><?php echo $this->lang->line('add'); ?></h2>
            <a href = "javascript:void(0)" onclick ="$('#light_adct').hide();$('#fade_adct').hide()"><img src="<?php echo base_url();?>public/admin/img/close.png" class="png" /></a>
</div>

<div id="div_message"></div>
        <form action="<?php echo  admin_url();?>/add-new-testimonial" method="post" id="add-testimonial-form">
            <div class="article_ct">
                <div class="btarticle">
                    <input type="submit" value="<?php echo $this->lang->line('save'); ?>" class="btn add-faq-testimonial" />
                </div>
                <ul class="metatags">
                    <li>
                        <span class="left"><b><?php echo $this->lang->line('brief'); ?>* : </b></span>
                        <span class="right"><textarea name="brief" id="brief" style="width: 100%; height: 50px;"></textarea></span>
                    </li>
                    <li>
                        <span class="left"><b><?php echo $this->lang->line('sender'); ?>* : </b></span>
                        <span class="right"><input type="text" name="sender" value=""  style="width: 100%;" /></span>
                    </li>
                    <li>
                        <span class="left"><b><?php echo $this->lang->line('sender_email'); ?> : </b></span>
                        <span class="right"><input type="text" name="sender_email" value=""  style="width: 100%;"  /></span>
                    </li>
                    <li>
                        <span class="left"><b><?php echo $this->lang->line('status'); ?>* : </b></span>
                        <span class="right">
                            <select name="status" class="add-status" style="width: 150px;">
                                <option value="yes" ><?php echo $this->lang->line('active'); ?></option>
                                <option value="no" ><?php echo $this->lang->line('suspend'); ?></option>
                            </select>
                        </span>
                    </li>
                    <li>
                        <span class="left"><b><?php echo $this->lang->line('country'); ?>* : </b></span>
                        <span class="right">
                            <select name="country" class="add-status" style="width: 150px;">
                                <option value="Australia" >Australia</option>
                                <option value="Canada" >Canada</option>
                                <option value="France" >France</option>
                                <option value="United States" >United States</option>
                                <option value="United Kingdom" >United Kingdom</option>
                                <option value="Norway" >Norway</option>
                                <option value="Netherlands" >Netherlands</option>
                                <option value="Austria" >Austria</option>
                                <option value="Germany" >Germany</option>
                                <option value="Spain" >Spain</option>
                            </select>
                        </span>
                    </li>
                    <li>
                        <span class="left"><b><?php echo $this->lang->line('detail'); ?>* : </b></span>
                        <span style="padding: 10px;"><textarea name="content" id="content"  style="width: 100%; height: 100px;"></textarea></span>
                    </li>
                    
                </ul>
                <div class="btarticle">
                    <input type="button" value="<?php echo $this->lang->line('cancel'); ?>" class="btn" onclick="reback()" />
                    <input type="submit" value="<?php echo $this->lang->line('save'); ?>" class="btn add-faq-testimonial" />
                </div>
            </div>
        </form>
<script type="text/javascript">
$('#add-testimonial-form').iframer({
    onComplete: function(msg){
        if(msg == 'yes') {
            $('#light_adct').hide();$('#fade_adct').hide();
            alert('<?php echo $this->lang->line('add_mess'); ?>');
            window.location =   admin_url+'testimonials';
        }
        else show_error('div_message', msg)
    }
});

function reback(){
	$('#light_adct').hide();$('#fade_adct').hide();
	window.location = admin_url+'testimonials';
}
    if(CKEDITOR.instances['content']) {                     
        CKEDITOR.remove(CKEDITOR.instances['content']);
    }
    CKEDITOR.replace( 'content', {
    filebrowserBrowseUrl : '<?php echo base_url()."public/ckfinder/ckfinder.html"; ?>',
    filebrowserImageBrowseUrl : '<?php echo base_url()."public/ckfinder/ckfinder.html?Type=Images";?>',
    filebrowserFlashBrowseUrl : '<?php echo base_url()."public/ckfinder/ckfinder.html?Type=Flash" ?>',
    filebrowserUploadUrl : '<?php echo base_url()."public/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files"?>',
    filebrowserImageUploadUrl : '<?php echo base_url()."public/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images";?>',
    filebrowserFlashUploadUrl : '<?php echo base_url()."ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash";?>',
    filebrowserWindowWidth : '800',
    filebrowserWindowHeight : '480'
} );
CKFinder.SetupCKEditor( editor, "<?php echo base_url().'public/ckfinder/' ?> " );
</script>